package com.yangcangclub.system.domain;

import com.yangcangclub.system.base.SystemBaseDomain;
import com.google.common.collect.Maps;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * app 相关配置
 */
@Component
public class AppProperties  extends SystemBaseDomain {


    /**
     *获取系统配置list
     */
    public List<Map<String, Object>> queryProperList(String isIOS){

        return super.getSlaveJdbc().selectList("system.SystemMapper.selectPropertiesList", isIOS);
    }


    public boolean addRequestErrorData(String request_url, String error_msg){

        Map<String,Object>map= Maps.newHashMap();
        map.put("request_url",request_url);
        map.put("error_msg",error_msg);

        super.getMasterJdbc().insert("system.SystemMapper.insertRequestErrorData", map);

        return true;
    }
}
